using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MWIS.Common;

public partial class _Default : System.Web.UI.Page
{
    MwisDatabaseServices dbService = new MwisDatabaseServices();

    protected void Page_Load(object sender, EventArgs e)
    {
        Page.Title = "Mobile and Web Based Information System";

    }
    protected void btnLogIn_Click(object sender, EventArgs e)
    {
        if (dbService.checkUser(txtUserName.Text, txtPassword.Text))
        {
            Response.Redirect("welcome.aspx");
        }
        else
        {
            lblErrorLog.Text = "Invalid User Name or Password.";
        }
    }
}
